import java.util.HashMap;
import java.util.Map;

/**
 * @USER: Administrator
 * @DATE: 2024/9/27 下午11:03
 * @VERSION: 1.0.0
 */
public class LC2357 {
    public static void main(String[] args) {

    }
    public int minimumOperations(int[] nums) {
        Map<Integer, Integer> map = new HashMap<>();
        for (int num : nums) {
            if (num == 0) {
            }else {
                map.put(num, map.getOrDefault(num, 0) + 1);
            }
        }
        return map.size();
    }
}
